//
//  ThemeImageV.m
//  BV_WeiBo
//
//  Created by mac on 15/12/30.
//  Copyright © 2015年 YF_S. All rights reserved.
//

#import "ThemeImageV.h"

@implementation ThemeImageV

//重写init方法
-(instancetype)initWithImage:(UIImage *)image{

    self = [super initWithImage:image];
    
    if (self) {
        
//        //接受通知
//        [[NSNotificationCenter defaultCenter] addObserverForName:kThemeChangeName object:nil queue:[NSOperationQueue mainQueue] usingBlock:^(NSNotification * _Nonnull note) {
//            
//            //重新设置图片
////            self.image = [[ThemeManager defaultThemeManager] imageWithName:self.imageName];
//            if (_topDis >0 || _leftDis > 0) {
//                
//                self.image = [kThemeImageFormName(self.imageName) stretchableImageWithLeftCapWidth:_leftDis topCapHeight:_topDis];
//            }else{
//            
//                self.image = kThemeImageFormName(self.imageName);
//            }
//        }];
    }
    
    return self;
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
